<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <meta name="renderer" content="webkit|ie-comp|ie-stand">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport"
          content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no"/>
    <meta http-equiv="Cache-Control" content="no-siteapp"/>
    <link href="assets/css/bootstrap.min.css" rel="stylesheet"/>
    <link rel="stylesheet" href="css/style.css"/>
    <link rel="stylesheet" href="assets/css/ace.min.css"/>
    <link rel="stylesheet" href="assets/css/font-awesome.min.css"/>
    <link rel="stylesheet" href="Widget/zTree/css/zTreeStyle/zTreeStyle.css" type="text/css">
    <link href="Widget/icheck/icheck.css" rel="stylesheet" type="text/css"/>
    <!--[if IE 7]>
    <link rel="stylesheet" href="assets/css/font-awesome-ie7.min.css"/>
    <![endif]-->
    <!--[if lte IE 8]>
    <link rel="stylesheet" href="assets/css/ace-ie.min.css"/>
    <![endif]-->
    <script src="js/jquery-1.9.1.min.js"></script>
    <script src="assets/js/bootstrap.min.js"></script>
    <script src="assets/js/typeahead-bs2.min.js"></script>
    <!-- page specific plugin scripts -->
    <script src="assets/js/jquery.dataTables.min.js"></script>
    <script src="assets/js/jquery.dataTables.bootstrap.js"></script>
    <script type="text/javascript" src="js/H-ui.js"></script>
    <script type="text/javascript" src="js/H-ui.admin.js"></script>
    <script src="assets/layer/layer.js" type="text/javascript"></script>
    <script src="assets/laydate/laydate.js" type="text/javascript"></script>
    <script type="text/javascript" src="Widget/zTree/js/jquery.ztree.all-3.5.min.js"></script>
    <script src="js/lrtk.js" type="text/javascript"></script>
<title>自动分配</title>

</head>

<body>
	
<div class="margin clearfix">
 <div class="stystems_style">
  <div class="tabbable">
  <div class="page-content clearfix">
    <div id="Member_Ratings">
     <div class="d_Confirm_Order_style">
	<ul class="nav nav-tabs" id="myTab">
	  <li class="active">
		<a data-toggle="tab" href="#home"><i class="green fa fa-home bigger-110"></i>自动分配</a></li>
	</ul>
	</div>
	<div class="tab-content">	
			
	 <div id="home" class="tab-pane active">			
		 <!---->
		<div class="border clearfix">
        <span class="l_f">
        <a href="javascript:;" id="dayin" class="btn btn-success">确定打印</a>
        <a href="sc_fp.html" class="btn btn-info">取消</a>
		</span>
		</div>
         <table class="table table-striped table-bordered table-hover sample-table" id="sample-table">
		<thead>
		 <tr>
				<th width="130">打印任务流水号</th>
				<th width="120">订单编号</th>
				<th width="170">组码</th>
				<th width="140">只码1</th>
				<th width="140">只码2</th>
				<th width="140">只码3</th>
				<th width="140">只码4</th>  
				<th width="140">只码5</th>			
				<th width="140">只码6</th>
				<th width="80">状态</th> 
				<th width="100">打印机</th>
			</tr>
		</thead>
	<tbody>
		<tr>
          <td>P201603261001</td>
          <td>20160705445622</td>
		  <td>NJ20160705000001</td>
		  <td>20160705ZM0001</td>
          <td>20160705ZM0001</td>
          <td>20160705ZM0001</td>
          <td>20160705ZM0001</td>          
          <td>20160705ZM0001</td>
          <td>20160705ZM0001</td>
		  <td style="color:red">待打印</td>
          <td>A1</td>
		</tr>
		<tr>
          <td>P201603261001</td>
          <td>20160705445622</td>
		  <td>NJ20160705000001</td>
		  <td>20160705ZM0001</td>
          <td>20160705ZM0001</td>
          <td>20160705ZM0001</td>
          <td>20160705ZM0001</td>          
          <td>20160705ZM0001</td>
          <td>20160705ZM0001</td>
		  <td style="color:red">待打印</td>
          <td>A1</td>
		</tr>
		<tr>
          <td>P201603261001</td>
          <td>20160705445622</td>
		  <td>NJ20160705000001</td>
		  <td>20160705ZM0001</td>
          <td>20160705ZM0001</td>
          <td>20160705ZM0001</td>
          <td>20160705ZM0001</td>          
          <td>20160705ZM0001</td>
          <td>20160705ZM0001</td>
		  <td style="color:red">待打印</td>
          <td>A1</td>
		</tr>
		<tr>
          <td>P201603261001</td>
          <td>20160705445622</td>
		  <td>NJ20160705000001</td>
		  <td>20160705ZM0001</td>
          <td>20160705ZM0001</td>
          <td>20160705ZM0001</td>
          <td>20160705ZM0001</td>          
          <td>20160705ZM0001</td>
          <td>20160705ZM0001</td>
		  <td style="color:red">待打印</td>
          <td>A1</td>
		</tr>
		<tr>
          <td>P201603261001</td>
          <td>20160705445622</td>
		  <td>NJ20160705000001</td>
		  <td>20160705ZM0001</td>
          <td>20160705ZM0001</td>
          <td>20160705ZM0001</td>
          <td>20160705ZM0001</td>          
          <td>20160705ZM0001</td>
          <td>20160705ZM0001</td>
		  <td style="color:red">待打印</td>
          <td>A1</td>
		</tr>
		<tr>
          <td>P201603261003</td>
          <td>20160705445622</td>
		  <td>NJ20160705000003</td>
		  <td>20160705ZM0001</td>
          <td>20160705ZM0001</td>
          <td>20160705ZM0001</td>
          <td>20160705ZM0001</td>          
          <td>20160705ZM0001</td>
          <td>20160705ZM0001</td>
		  <td style="color:red">待打印</td>
		  <td>A3</td>
		</tr>
      </tbody>
	</table>
	  自动分配闲时打印机
</div>
 </div>
 <!--添加用户图层-->
<div class="add_menber" id="add_menber_style" style="display:none">
  
    <ul class=" page-content">
     <li><label class="label_name">打印任务流水号：</label><span class="add_name"><input value="" name="打印任务流水号" type="text"  class="text_add"/></span><div class="prompt r_f"></div></li>
     <li><label class="label_name">选择打印机：</label><span class="add_name">
     <label><input name="form-field-radio1" type="radio" checked="checked" class="ace"><span class="lbl">A1</span></label>
     <label><input name="form-field-radio1"type="radio" class="ace"><span class="lbl">A2</span></label></span></li>
     <div class="prompt r_f"></div>
     </li>
     <li><label class="label_name">订单编号：</label><span class="add_name"><input name="订单号" type="text"  class="text_add"/></span><div class="prompt r_f"></div></li>
      <li><label class="label_name">打印数量：</label><span class="add_name"><input name="打印数量" type="text"  class="text_add"/></span><div class="prompt r_f"></div></li>
	   <li><label class="label_name">调整人：</label><span class="add_name"><input name="调整人" type=""  class=""/></span><div class="prompt r_f"></div></li>
    </ul>
 </div>
 </div>
		</div>
		</div>
 </div>
</div>
</body>
</html>
<script>
jQuery(function($) {
				 var oTable1 = $('#sample-table').dataTable({
            "aaSorting": [[1, "desc"]],//默认第几个排序
            "bStateSave": true,//状态保存
            "aoColumnDefs": [
                //{"bVisible": false, "aTargets": [ 3 ]} //控制列的隐藏显示
                {"orderable": false, "aTargets": [0]}// 制定列不参与排序
            ]
        });
				
				
				$('table th input:checkbox').on('click' , function(){
					var that = this;
					$(this).closest('table').find('tr > td:first-child input:checkbox')
					.each(function(){
						this.checked = that.checked;
						$(this).closest('tr').toggleClass('selected');
					});
						
				});
			
			
				$('[data-rel="tooltip"]').tooltip({placement: tooltip_placement});
				function tooltip_placement(context, source) {
					var $source = $(source);
					var $parent = $source.closest('table')
					var off1 = $parent.offset();
					var w1 = $parent.width();
			
					var off2 = $source.offset();
					var w2 = $source.width();
			
					if( parseInt(off2.left) < parseInt(off1.left) + parseInt(w1 / 2) ) return 'right';
					return 'left';
				}
			})

/*开始打印*/
 $('#dayin').on('click', function(){
    layer.open({
  title: '提示框'
  ,content: '您的打印任务已经提交给打印机，请查看打印情况，谢谢！'
}); 
});

</script>
